package cn.itcast.crm.service;

import java.util.List;

import cn.itcast.crm.domain.Customer;

// 客户服务接口 
public interface CustomerService {
	/**
	 * 查询未关联定区客户
	 * @return
	 */
	public List<Customer> findnoassociationCustomers();

	/**
	 * 查询已经关联指定定区的客户
	 * @param decidedZoneId
	 * @return
	 */
	public List<Customer> findhasassociationCustomers(String decidedZoneId);

	/**
	 * 将未关联定区客户关联到定区上
	 * @param customerIds
	 * @param decidedZoneId
	 */
	public void assignCustomersToDecidedZone(Integer[] customerIds, String decidedZoneId);

	/**
	 * 通过手机号查询用户信息
	 */
	public Customer findCustomerByphone(String phone);
	
	/**
	 * 通过地址查询定区id
	 */
	public String findDecidezoneIDByAddress(String address);
}
